package com.example.demo.contorller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.pojo.User;
import com.example.demo.service.*;

@RestController
public class TestContorller {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping("/getUser")
	public List<User> getUser(){
		return userService.getUser();
		
	}
}
